package edu.hunau.cxb.pojo;

import java.time.LocalDate;

/**
 * @author hb
 * @create 2020-04-03 11:12
 */
public class Product {
    private Integer id;
    private String name;
    private double price;
    private LocalDate createTime;

    private Boolean onLine;


    public Boolean getOnLine() {
        return onLine;
    }

    public void setOnLine(Boolean onLine) {
        this.onLine = onLine;
    }

    public Product(Integer id, String name, double price, LocalDate createTime, Boolean onLine) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.createTime = createTime;
        this.onLine = onLine;
    }

    public Product() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public LocalDate getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDate createTime) {
        this.createTime = createTime;
    }

    public Product(Integer id, String name, double price, LocalDate createTime) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.createTime = createTime;
    }
}
